#define _CRT_SECURE_NO_WARNINGS

#include "SList.h"

int main()
{
	SLTNode* plist = (SLTNode*)malloc(sizeof(SLTNode));
	plist->data = 1;
	plist->next = NULL;
	SLTPrint(plist);

	SLTPushBack(&plist,2);
	SLTPrint(plist);

	SLTPushFront(&plist, 3);
	SLTPrint(plist);
	SLTNode* find = SLTFind(plist, 3);
	SLTEraseBack(&plist, find);

	SLTPrint(plist);
	SLTDestroy(&plist);
	return 0;
}
